package com.yoso.autowired;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;

import java.util.List;

/**
 * @author shizejin
 * @date 2022/3/22
 * @description:
 */
@org.springframework.stereotype.Service
public class Service implements ApplicationRunner {
    @Autowired
    List<Father> fatherList;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        for (Father father : fatherList) {
//            System.out.println(father.infoList());
        }
    }
}
